{if $full_page}
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}
<div class="list-div" id="listDiv">
{/if}
<table cellspacing='1' cellpadding='3'>
<tr>
	<th>模板ID</th>
	<th>标识</th>
    <th>模板标题</th>
    <th width="20%">上次修改时间</th>
    <th width="20%">上次发送时间</th>
    <th width="22%">{$lang.handler}</th>
</tr>
{foreach from=$list item=val}
<tr>
	<td align="center">{$val.tpl_id}</td>
	<td align="center">{$val.tpl_code}</td>
    <td align="center">{$val.tpl_title}</td>
    <td align="center">{$val.last_modify}</td>
    <td align="center">{$val.last_send}</td>
    
    <td align="center">
    	{if $val.tpl_code == normal}
	    <form action="sms_new.php" method="post" name="hidform" style="display: inline-block;">
	        <input type="hidden" name="id" value="{$val.id}" />
	        <input type="hidden" name="act" value="addtolist" />
	        <input type="submit" value="加入发送队列" class="button" />
	    </form>
	    {/if}
    	<a href="sms_new.php?act=edit&id={$val.id}">编辑</a>
    	<a href="sms_new.php?act=del&id={$val.id}" onclick="return confirm('确定要删除吗？');">删除</a>
    </td>
</tr>
    {foreachelse}
    <tr><td class="no-records" colspan="10">{$lang.no_records}</td></tr>
{/foreach}
</table>
<form method="post" action="" name="listForm">
<table cellpadding="4" cellspacing="0">
  <tr>
    <td align="right">{include file="page.htm"}</td>
  </tr>
</table>
{if $full_page}
</div>
</form>



<script type="text/javascript" language="JavaScript">
listTable.recordCount = {$record_count};
listTable.pageCount = {$page_count};
{foreach from=$filter item=item key=key}
listTable.filter.{$key} = '{$item}';
{/foreach}
{literal}
<!--
onload = function()
{
  // 开始检查订单
  startCheckOrder();
}
//-->
</script>
{/literal}
{include file="pagefooter.htm"}
{/if}